//
//  XButton.m
//  ReceiveVouchers
//
//  Created by Veer on 2017/7/14.
//  Copyright © 2017年 ReceiveVouchers. All rights reserved.
//

#import "XButton.h"

@implementation XButton


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        self.adjustsImageWhenHighlighted = NO;
    }
    return self;
}

- (void)setHighlighted:(BOOL)highlighted
{
    [super setHighlighted:highlighted];
    
    self.alpha = highlighted ? 0.65 : 1;
}

@end
